<?php

	require_once('config.php');
	
				 
	if ($CFG->forcelogin) {
        require_login();
    } else {
        user_accesstime_log();
    }
	
	if (empty($CFG->langmenu)) {
        $langmenu = "";
    } else {
        $currlang = current_language();
        $langs    = get_list_of_languages();
        $langlabel = get_accesshide(get_string('language'));
        $langmenu = popup_form ("$CFG->httpswwwroot/login/index.php?lang=", $langs, "chooselang", $currlang, "", "", "", true, 'self', $langlabel);
    }
	
	 $loginsite = get_string("loginsite");
    $navlinks = array(array('name' => $loginsite, 'link' => null, 'type' => 'misc'));
    $navigation = build_navigation($navlinks);
	
	
	print_header($SITE->fullname, $SITE->fullname, 'home', '',
                 '<meta name="description" content="'. strip_tags(format_text($SITE->summary, FORMAT_HTML)) .'" />',
                 true, '', user_login_string($SITE).$langmenu);
				 
	echo"<br /><br />";
	?>
	<table id="layout-table" summary="layout">
    <tr>
    <td id="middle-column">
        <span id="maincontent"></span>
        <div><h2 class="headingblock header ">Role Assignment</h2>
            <h2   class="main">Hello Every Body</h2>
  <?php
    echo ('<!-- HTML generated by a PHP script from OpenMoodle, localhost) -->');
    $now = date ('H');
    echo date  ('l jS F Y');
    if ($now < 12)
    echo ('<p>Good morning and welcome to <a href="http://localhost" >Open Moodle</a>.');
    else if ($now < 18)
    echo  ('<p>Good afternoon and welcome to <a href="http://localhost">Open Moodle</a>.');
    else if ($now >= 18 )
    echo ('<p>Good evening and welcome to <a href="http://localhost" >Open Moodle</a>.');
?>
     <form name=role method=post action="sort.php">
        
		
		<SELECT NAME="sort">  
			<OPTION VALUE="1"> 
			<OPTION VALUE="2">  I want to be a student 
			<OPTION VALUE="3">  I want to be a eacher
		</SELECT>
        
        <br /> <br /> <br />
		<input type="submit" name="submit" value="continue" />
    </form>
            <br />
        </div>
    </td>
  </table>

  </tr>
</table>
	<?
				 
				 
				 
				 
				 
				 
				 
				 
				 
	print_footer('home');     // Please do not modify this line
?>